package day5;

public class Food {
    private String type;
    public double price;
    protected String adds;

    public Food() {
    }

    public Food(String type, double price, String adds) {
        this.type = type;
        this.price = price;
        this.adds = adds;
    }


    public String toString() {
        return "水果品种是:" + type + " 价格为: " + price + " 生产地为: " + adds;
    }
}
